<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: guzhe
  Date: 2020/12/11
  Time: 9:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>response demo</title>
</head>
<body>
<%
    response.setCharacterEncoding("UTF-8");
    PrintWriter writer=response.getWriter();
    writer.write("hello");
    //页面跳转
   // response.sendRedirect("shows.jsp");
    //页面刷新
    response.setHeader("refresh","2");
%>
</body>
</html>
